<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Thêm khách hàng';
$this->breadcrumbs=array(
	'Danh sách khách hàng'=>array('khachhang/index'),'Thêm khách hàng',
);
?>

<h1>Thêm khách hàng</h1>


<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'Tbkhachhang-form',
	 'enableClientValidation' => true,
	 'htmlOptions' => array('enctype' => 'multipart/form-data'
	),
));

?>

	<div class="row">
		<?php echo $form->labelEx($model,'tenkhachhang'); ?>
		<?php echo $form->textField($model,'tenkhachhang'); ?>
		<?php echo $form->error($model,'tenkhachhang'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dienthoai'); ?>
		<?php echo $form->textField($model,'dienthoai'); ?>
		<?php echo $form->error($model,'dienthoai'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'masothue'); ?>
		<?php echo $form->textField($model,'masothue'); ?>
		<?php echo $form->error($model,'masothue'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'diachi'); ?>
		<?php echo $form->textArea($model,'diachi'); ?>
		<?php echo $form->error($model,'diachi'); ?>
	</div>

<p class="note">Thông tin bắt buộc <span class="required">*</span></p>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Thêm'); ?>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->
